package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName probe_resource
 */
@TableName(value ="probe_resource")
@Data
public class ProbeResource implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String probeName;


    private String probeTitle;

    /**
     * 
     */
    private String probePath;

    private String probeExtResource;

    private String probeInput;

    private String probeOutput;

    /**
     * 
     */
    private String status;

    /**
     * 分组
     */
    private String level;

    /**
     * 开发者
     */
    private String developer;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProbeResource other = (ProbeResource) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getProbeName() == null ? other.getProbeName() == null : this.getProbeName().equals(other.getProbeName()))
                && (this.getProbePath() == null ? other.getProbePath() == null : this.getProbePath().equals(other.getProbePath()))
                && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
                && (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()));}

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProbeName() == null) ? 0 : getProbeName().hashCode());
        result = prime * result + ((getProbePath() == null) ? 0 : getProbePath().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
        result = prime * result + ((getDeveloper() == null) ? 0 : getDeveloper().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", probeName=").append(probeName);
        sb.append(", probePath=").append(probePath);
        sb.append(", status=").append(status);
        sb.append(", group=").append(level);
        sb.append(", developer=").append(developer);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}